package com.kaifamiao.demo.d0717;

import java.util.Scanner;

public class Demo07 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        System.out.println("请输入你的性别: 男 = 1， 女 = 0");

        int gender = sc.nextInt();

        // 是否合适
        boolean isTrue = false;

        if (gender == 0){
            System.out.println("请输入你的年龄：");
            int age = sc.nextInt();
            if ( 18 <= age && age <= 25 ){
                isTrue = true;
            }
        }

        if (! isTrue){
            System.out.println("我们不合适。");
        } else {
            System.out.println("我们挺合适的");
        }
    }
}
